package com.heima.estatemanagement.domain;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 车位表
 * @TableName tb_parking
 */
@Table(name ="tb_parking")
public class TbParking implements Serializable {

    @Id
    private Integer id;
    private String cname;
    private Integer communityId;
    private String picture;
    private String code;
    private String name;
    private Date createTime;
    private Date updateTime;
    private String status;

    public String getStatus() {

        return status==null?"闲置中":"使用中";
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    @Override
    public String toString() {
        return "TbParking{" +
                "id=" + id +
                ", cname='" + cname + '\'' +
                ", communityId=" + communityId +
                ", picture='" + picture + '\'' +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ",stauts="+getStatus()+
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Integer communityId) {
        this.communityId = communityId;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}